package org.zh.svs.order.vll;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.zh.client.ann.ZHOpenReference;
import org.zh.svs.pro.entity.Student;
import org.zh.svs.pro.remote.ProRemote;

import java.util.Map;

@RestController
public class OrderController {

    private final ProRemote proRemote;

    public OrderController(ProRemote proRemote){
       this.proRemote = proRemote;
   }

    @RequestMapping(method = RequestMethod.GET, path = "/getStudent")
    public Student getStudent() {
        return  proRemote.testC(Map.of("teacher_id",666L));
    }
}
